@import "tailwindcss";

/* Light theme for workspace/dashboard (keep current colors unchanged) */
@theme {
  --color-background: #ffffff;
  --color-foreground: #0a0a0a;
  --color-card: #ffffff;
  --color-card-foreground: #0a0a0a;
  --color-popover: #ffffff;
  --color-popover-foreground: #0a0a0a;
  --color-primary: #171717;
  --color-primary-foreground: #fafafa;
  --color-secondary: #f5f5f5;
  --color-secondary-foreground: #171717;
  --color-muted: #f5f5f5;
  --color-muted-foreground: #737373;
  --color-accent: #f5f5f5;
  --color-accent-foreground: #171717;
  --color-destructive: #ef4444;
  --color-destructive-foreground: #fafafa;
  --color-border: #e5e5e5;
  --color-input: #e5e5e5;
  --color-ring: #171717;
  --radius: 0.5rem;
}

/* Dark theme specifically for live meetings */
[data-theme="meeting"] {
  --color-background: #0f172a;
  --color-foreground: #f8fafc;
  --color-card: #1e293b;
  --color-card-foreground: #f8fafc;
  --color-popover: #1e293b;
  --color-popover-foreground: #f8fafc;
  --color-primary: #64748b;
  --color-primary-foreground: #ffffff;
  --color-secondary: #334155;
  --color-secondary-foreground: #f8fafc;
  --color-muted: #334155;
  --color-muted-foreground: #94a3b8;
  --color-accent: #334155;
  --color-accent-foreground: #f8fafc;
  --color-destructive: #ef4444;
  --color-destructive-foreground: #ffffff;
  --color-border: #334155;
  --color-input: #334155;
  --color-ring: #64748b;
}

/* Import simplified meeting styles */
@import '../styles/meeting-components.css';

/* Remove blue backgrounds - use proper dark theme colors */
body, html {
  background-color: hsl(var(--background));
  color: hsl(var(--foreground));
}

/* Fix for meeting backgrounds */
[data-theme="meeting"] body,
[data-theme="meeting"] html {
  background-color: #0f172a !important;
  color: #f8fafc !important;
}

/* Custom scrollbar styles for consistency */
.custom-scrollbar::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

.custom-scrollbar::-webkit-scrollbar-track {
  background: transparent;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
  background: hsl(var(--border));
  border-radius: 3px;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
  background: hsl(var(--muted-foreground));
}

/* Line clamp utility */
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Mobile responsiveness for workspace components */
@media (max-width: 768px) {
  /* Modal and dialog mobile adjustments */
  .modal-overlay,
  .dialog-overlay {
    padding: 1rem !important;
  }
  
  .modal-content,
  .dialog-content {
    max-height: 90vh !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
    margin: 0 !important;
    border-radius: 12px !important;
  }
  
  /* Button touch targets */
  .btn-mobile {
    min-height: 44px !important;
    min-width: 44px !important;
    padding: 0.75rem 1rem !important;
  }
  
  /* Form inputs mobile */
  .input-mobile {
    min-height: 44px !important;
    font-size: 16px !important; /* Prevents zoom on iOS */
  }
  
  /* Dropdown menus */
  .dropdown-mobile {
    max-height: 50vh !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
  }
  
  /* Toast notifications */
  .toast-mobile {
    bottom: 2rem !important;
    left: 1rem !important;
    right: 1rem !important;
    width: auto !important;
  }
  
  /* Loading states */
  .loading-container {
    padding: 2rem 1rem !important;
  }
  
  /* Card components */
  .card-mobile {
    margin: 0.5rem !important;
    border-radius: 12px !important;
  }
  
  /* Navigation and tabs */
  .nav-mobile {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
  }
  
  .nav-mobile::-webkit-scrollbar {
    display: none !important;
  }
  
  /* Text sizing for mobile */
  .text-mobile-sm {
    font-size: 0.875rem !important;
    line-height: 1.25rem !important;
  }
  
  .text-mobile-base {
    font-size: 1rem !important;
    line-height: 1.5rem !important;
  }
  
  .text-mobile-lg {
    font-size: 1.125rem !important;
    line-height: 1.75rem !important;
  }
}

/* Custom scrollbar for chat areas */
.custom-scrollbar {
  scrollbar-width: thin !important;
  scrollbar-color: rgba(255, 255, 255, 0.2) transparent !important;
}

.custom-scrollbar::-webkit-scrollbar {
  width: 4px !important;
}

.custom-scrollbar::-webkit-scrollbar-track {
  background: transparent !important;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2) !important;
  border-radius: 2px !important;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.3) !important;
}

/* Tablet responsive (768px - 1024px) */
@media (min-width: 768px) and (max-width: 1024px) {
  .modal-content,
  .dialog-content {
    max-width: 90vw !important;
    max-height: 85vh !important;
  }
  
  .btn-tablet {
    min-height: 40px !important;
    min-width: 40px !important;
  }
}